<template>
	<view class="">
		<view class="BaseHouseMessage">
			<view class="contbox">
				<view class="name">
					考试名称：
				</view>
				<view class="neirong">
					{{obj.answer_type.name}}
				</view>
			</view>
			<view class="contbox">
				<view class="name">
					开考时间：
				</view>
				<view class="neirong">
					{{obj.answer_type.times}}
				</view>
			</view>
			<view class="contbox">
				<view class="name">
					答题时间：
				</view>
				<view class="neirong">
					{{obj.answer_type.use_time}}
				</view>
			</view>
			<view class="contbox">
				<view class="name">
					考试结果：
				</view>
				<view class="neirong">
					{{obj.level}}
				</view>
			</view>
			<view class="contbox">
				<view class="name">
					答题信息:
				</view>
				<view class="neirong">
					<text>正确<text class="dui">{{obj.correct_num}}</text>题</text>
					<text class="right">错误<text class="cuo">{{obj.error_num}}</text>题</text>
				</view>
			</view>
			<view class="btn">
				考试回顾
			</view>
		</view>
	</view>
</template>

<script>
	import {getanswerloginfo} from "../../api/api/index"
	export default {
		data() {
			return {
				obj:{}
			}
		},
		methods: {

		},
		onLoad(e) {
			console.log(e)
			getanswerloginfo({id:e.id}).then(res=>{
				this.obj=res.data
			})
		},
		components: {
			
		}
	}
</script>

<style scoped lang="less">
	.BaseHouseMessage {
		width: 710rpx;
		height: 760rpx;
		background-color: #ffffff;
		border-radius: 10rpx;
		margin-left: 20rpx;
		margin-top: 35rpx;
		padding: 43rpx 25rpx;
		box-sizing: border-box;

		.contbox {
			display: flex;
			align-items: center;
			margin-bottom: 50rpx;

			.name {
				font-family: TaipeiSansTCBeta-Regular;
				font-size: 24rpx;
				font-weight: normal;
				font-stretch: normal;
				letter-spacing: 0rpx;
				color: #666666;
			}

			.neirong {
				width: 473rpx;
				font-family: TaipeiSansTCBeta-Regular;
				font-size: 24rpx;
				font-weight: normal;
				color: #000000;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				margin-left: 20rpx;

				.dui {
					color: #3399ff;
				}

				.right {
					margin-left: 40rpx;

					.cuo {
						color: #ff0000;
					}
				}

			}

		}

		.btn {
			width: 342rpx;
			height: 90rpx;
			background-color: #ff6666;
			border-radius: 45rpx;
			font-family: TaipeiSansTCBeta-Regular;
			font-size: 30rpx;
			line-height: 89rpx;
			text-align: center;
			color: #ffffff;
			margin: 169rpx auto;
		}
	}
</style>
